import request from "@/utils/request.js";

//分页查询
export const queryPageApi = (name,begin,end,page,pageSize)=>
  request.get(`/clazzs?name=${name}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`);

//新增班级
export const saveClazzApi = (clazz) =>{
  return request.post(`/clazzs`,clazz);
}
//根据id查询班级
export const queryClazzByIdApi = (id)=>{
  return request.get('/clazzs/'+id)
}

//修改班级信息
export const updateClazzApi = (clazz)=>{
  return request.put('/clazzs',clazz)
}

//删除班级
export const deleteClazzApi = (id)=>{
  return request.delete(`/clazzs/${id}`)
}
